package com.freemyleft.left.left_app.mian.index.my.accept_setup.Teacher_default_price;

import com.freemyleft.left.left_app.R;
import com.freemyleft.left.zapp.ui.recycler.MultipleItemEntity;
import com.freemyleft.left.zapp.ui.recycler.MultipleRecyclerAdapter;
import com.freemyleft.left.zapp.ui.recycler.MultipleViewHolder;

import java.util.List;

public class TeacherDefaultPriceAdapter extends MultipleRecyclerAdapter {
    public final static int TEACHER_TYPE = 566;
    private String price;
    private String grade;

    protected TeacherDefaultPriceAdapter(List<MultipleItemEntity> data) {
        super(data);
        addItemType(TEACHER_TYPE, R.layout.item_pric);
    }

    @Override
    protected void convert(MultipleViewHolder holder, MultipleItemEntity entity) {
        super.convert(holder, entity);

            price = entity.getField(TeacherDefaultPriceFiles.PRICE);
            grade =entity.getField(TeacherDefaultPriceFiles.GRADE) ;

        holder.setText(R.id.tv_price, price);
        holder.setText(R.id.tv_grade, grade);


    }

    public enum TeacherDefaultPriceFiles {
        PRICE,
        GRADE,
    }
}
